Skip to content
  • 0 Votes
    2 Posts
    41 Views
    E
    @OldSurferDude well, the ESP8266 is limited to 4 TCP clients in arduino IDE. This can't be really increased. I did som experiments and you can set it up to 15, but after the 5th client on my web server, I got a freeze. Maybe you got something wrong. #define MY_GATEWAY_MAX_CLIENTS 2 defines how many controllers (eg Home Assistant) can connect to the gateway, not how many sensors/MySensors devices. And yes, you can have multiple TCP gateways in HomeAssistant. I got an NRF24, an RFM95 long range and a RFM95 short range gateway (all based on ESP32) on the same Home Assistant. Regards, Edi
  • 0 Votes
    6 Posts
    115 Views
    W
    @Westie Testing using a docker image of the gateway... Update looking good - I have dropped the baud rate down to something more compatible with my clone nano. I found a useful tool to check the incoming serial from a Python point of view (not running the adapter when I do it) - python3 -m serial.tools.miniterm --parity N /dev/ttyUSB0 19200. This prints out the messages from the Serial Gateway in nice text when the speed is correct.
  • 0 Votes
    3 Posts
    43 Views
    T
    @Boots33 Thanks a lot for the quick response. I now have my Nano running as a serial gateway and it is connected via a USB cable directly to my controller (Raspberry Pi 4 running Home Assistant / Hass.io). I added a local motion sensor to the Nano gateway HW and pasted the mysensors MotionSensor example code to the setup(), presentation() and loop() functions as well as to the definitions in the top of the GatewaySerial example code. I disabled the radio definitions as I currently have no radio capability in my gateway (not sure if this was necessary). In Home Assistant / Hass.io I updated the configuration.yaml with the following text (as described on the Home Assistant integration help): mysensors: gateways: - device: '/dev/ttyUSB0' And it works :) In Home Assistant Developer Tools under States I can now see my motion sensor go on and off by the flick of my hand. I had expected a bit more bumps on the road just to get this far, but wow - I am obviously walking in the foot prints of people who have worked hard to make it easy for the rest of us. I am sure I will hit bumps on the way when the radios have to send results to the gateway (thick concrete walls with lots of steel), but for now I will enjoy this big success. Thanks again Boots33
  • 0 Votes
    3 Posts
    47 Views
    Marcin SzydaM
    @TimO Yes, but without this message: 2020-01-07 16:23:52.050 [INFO ] [rsAbstractConnection$MySensorsWriter] - ACK received for message: 0;0;1;1;2;1
  • 0 Votes
    10 Posts
    1k Views
    pvojP
    @nca78 about my gateways: an old gateway running on MySensors 1.5 for years now. There are several nodes and sensors connected through it like temperature sensors, relays, switches. It controls my heating system with heat pump, buffering, 18 circles of floor heating, garden irrigation, alarm system, and some lights just for fun. the new gateway is a gateway to a Bluetooth network. Since MySensors has a great serial API and I have some experience with it I preferred to use it without a radio. I also think that it will be an interesting way of development and it could help to make MySensors even more popular. I had an idea to fork the library but unfortunately I don't have the experience and time to make it in good quality. But I'm sure letting developers to build connectors to different protocols is a very good idea. Catching Bluetooth messages from the air and decode them (with some reverse engineering) to send it through the MySensors gateway is relatively simple compared to the bidirectional communications. Processing some simple sensor data is a good first step.
  • 0 Votes
    3 Posts
    2k Views
    19Dani921
    Thank you so much, scalz. That solved my problem. Just soldered them and now it works. It really seems the arduino needs a good wired connection in order to work.
  • 0 Votes
    4 Posts
    2k Views
    micahM
    UPDATE I think it's a problem with the arduino board itself. So since my previous posts I've tried multiple radios and I've got a 4 working nodes now: Mega + NRF24 UNO R3 + NRF24 DCcEle (clone) + NRF24 Nano DCCduino (clone) + NRF24 Plus the Raspberry Pi 2 as gateway with NRF24L01+ PA/LNA is working. So... it seems like it's a problem with that Uno board.... weird. I've tried multiple radios (specifically ones that worked on the other boards) and none of them work. Like I said before, the board and the Rp2 seem to be communication but not properly. Has anyone ran into a similar problem before?
  • 0 Votes
    12 Posts
    4k Views
    petewillP
    @Newzwaver Great, glad it's working again!
  • 1 Votes
    13 Posts
    6k Views
    martinhjelmareM
    I've updated the docs at home-assistant.io with sketch examples. Look at the light example. https://home-assistant.io/components/light.mysensors/#example-sketch It's what I used for testing during development. It adds an RGB sensor/actuator also besides a dimmer, but you can just remove any references to rgb in the sketch. The dimmer slider will only be visible after turning on the light and clicking the entity in the gui to bring up the more info card.
  • Home Assistant v 0.12

    Home Assistant switch serial gateway home assistant sensor
    2
    3 Votes
    2 Posts
    2k Views
    D
    Thanks again @martinhjelmare Upgrade went successfully.
  • 2 Votes
    53 Posts
    22k Views
    martinhjelmareM
    @drock1985 Yes, it's possible to rename devices and also customize icons etc. See my post here: http://forum.mysensors.org/topic/2388/home-assistant-how-to-recognize-mysensors-nodes/64
  • 0 Votes
    3 Posts
    2k Views
    hekH
    I think I read somewhere that codebender will support the ESP soon. But still you're right, we'll need to update the library over at codebender once the next version is released. I would have hoped to have a more standard library structure by then also... so we can have it in the new Arduino IDE library manager as well.
  • 0 Votes
    12 Posts
    6k Views
    T
    @AWI @Hoffan @sundberg84 I can see both sketches are working, this is what the gateway prints out: 0;0;3;0;14;Gateway startup complete. 0;0;3;0;9;read: 105-105-0 s=255,c=0,t=18,pt=0,l=5:1.5.1 105;255;0;0;18;1.5.1 0;0;3;0;9;read: 105-105-0 s=255,c=3,t=6,pt=1,l=1:0 105;255;3;0;6;0 0;0;3;0;9;read: 105-105-0 s=255,c=3,t=11,pt=0,l=5:Relay 105;255;3;0;11;Relay 0;0;3;0;9;read: 105-105-0 s=255,c=3,t=12,pt=0,l=3:1.0 105;255;3;0;12;1.0 0;0;3;0;9;read: 105-105-0 s=1,c=0,t=3,pt=0,l=0: 105;1;0;0;3; 0;0;3;0;9;read: 105-105-0 s=2,c=0,t=3,pt=0,l=0: 105;2;0;0;3; 0;0;3;0;9;read: 105-105-0 s=3,c=0,t=3,pt=0,l=0: 105;3;0;0;3; 0;0;3;0;9;read: 105-105-0 s=4,c=0,t=3,pt=0,l=0: 105;4;0;0;3; Is this correct?
  • 3 Votes
    6 Posts
    4k Views
    OitzuO
    Bens doesn't seem to come back that fast.. I opened a ticket to the rf24 library owner: https://github.com/TMRh20/RF24/issues/172#issuecomment-163117684
  • 0 Votes
    4 Posts
    2k Views
    J
    @fot said: Hi! I ask my gateway about it's version (0;0;3;0;2;). It will responde with the library version number (1.4.1 in my case). It tells me that the gateway software is up and running. But it will not give me any clue about if the (NRF)network is working. That's a problem, right. I only ask the gateway if no other packages are received in $timeout seconds. /Magnus Of course ! Thank you for pushing my nose on it. Sometimes you don't see the most obvious ;-) Since my gateway is relatively close to the controller (Domoticz on a Raspi), I can do a hard reset of the gateway (via Raspi GPIO), which should resolve the issue. Cheers Josh
  • 0 Votes
    13 Posts
    10k Views
    I
    @hek This fix worked for me today using Plugin 1.5 Version 2.1.1 on UI7 1.7.2607 Thanks.
  • Domoticz setup with serial gateway?

    Domoticz domoticz serial gateway
    7
    0 Votes
    7 Posts
    9k Views
    ?
    To summarize: I have the serial gateway now attached to the RaspberryPi which is running domoticz (Beta 2.2339) and it detected the humidity node right away. Both are compiled using the Master branch. I have 4.7uF capacitors between VCC and ground, but not sure if I actually need them. I just pulled them out and it still works flawlessly. Distance is only 20cm though since it is all on my desk. The arduinos I use are Buono UNO clones which have more amp output on the 3.3V rail (200ma). If I try to use the serial gateway from the dev branch, I need to do one fix to get it compiled: //MySigningNone signer; // Construct MySensors library MySensor gw(radio);//, signer); Otherwise it complains (Using MacOS Arduino 1.6.1). But running that code yields no results. The gateway receives (some) messages from the Humidity node but on the Humidity node all messages fail to get ACKs. I do not know why that is. As I said, I am completely new to mysensors, so I did not have time to look deeper into the code yet. Shall I open another thread in Troubleshooting? This is not really related to the Domiticz setup anymore...
  • 0 Votes
    6 Posts
    3k Views
    S
    I looking with a magnifying glass at the chip, i noted that this is NOT NRF24L01+ but just a NRF24L01 without the plus. I used this smaller versions and they worked immediately. I_GATEWAY_READY message appeared. http://www.ebay.com/itm/2-4G-NRF24L01-PA-LNA-Wireless-Module-with-Ceramic-Antenna-1-27mm-/400746941364?pt=LH_DefaultDomain_0&hash=item5d4e610bb4 MySensors did post a warning on that: http://forum.mysensors.org/topic/728/radio-setup-give-check-wires/16 THREAD RESOLVED.
  • 0 Votes
    9 Posts
    5k Views
    J
    Got the Gravitech in the mail today. First try - recognized! Now to build some sensors. Thanks guys for the help!

24

Online

11.7k

Users

11.2k

Topics

113.1k

Posts